package com.globallogic.capacitaciones.hibernate.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToOne;
import javax.persistence.Table;



@Entity
@Table(name="custom_billing_details")
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public abstract class BillingDetails {
	@Id
	private Long id;
	private String ownername;
	@OneToOne
	private User user;
	
	public BillingDetails(){
		super();
	}
	public BillingDetails(String ownername){
		super();
		this.ownername=ownername;
	}
	
	public String getOwnername() {
		return ownername;
	}

	public void setOwnername(String ownername) {
		this.ownername = ownername;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

}
